/**
 * @Author YuanYuan
 * @Date 2022/5/8
 * @Time 11:57
 */
public class Test1 {
    public static void main(String[] args) {
        Date date = new Date();
        date.setYear(1999);
        System.out.println("获取当前的年份："+date.getYear());
        date.setMonth(9);
        date.setDay(8);
        date.printDate();
    }
}
